package com.example.yiqiuser.dao;



import com.example.yiqiuser.entity.ScenicTicket;

import java.util.List;

/**
 * @ fileName:ScenicTicketDao
 * @ description:
 * @ author:chen
 * @ createTime:2023/3/30 11:10
 * @ version:1.0.0
 */
public interface ScenicTicketDao {
    /**
     * 分页查询
     * @param scenicTicket
     * @return
     */
    List<ScenicTicket> queryByParam(ScenicTicket scenicTicket);

    /**
     * 添加
     * @param scenicTicket
     * @return
     */
    int add(ScenicTicket scenicTicket);

    /**
     * 更新
     * @param scenicTicket
     * @return
     */
    int  update(ScenicTicket scenicTicket);

    /**
     * 跟据Id删除
     * @param id
     * @return
     */
    int deleteById(String id);

    /**根据id查询
     *
     * @param id
     * @return
     */
    List<ScenicTicket> getTickets(int id);

    /**
     * 查询单个
     * @param id
     * @return
     */
    ScenicTicket queryById(int id);
}
